﻿using Autofac.Core;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using System.Threading.Tasks;
using VOL.System.IRepositories.System.Project;
using VOL.System.IServices.Project_LX;

namespace VOL.WebApi.Controllers.ProJect_LX.Partial
{
    [Route("api/ProSource")]
    public partial class ProSourceController
    {
        private IProjectsourceInfoRepository _repository;
        private IProSourceInfoService _sourceService;
        [ActivatorUtilitiesConstructor]
        public ProSourceController(IProjectsourceInfoRepository repository, IProSourceInfoService sourceService)
        {
            _repository = repository;
            _sourceService = sourceService;
        }

        [HttpGet,Route("GetSourceList")]
        public async Task<IActionResult> GetSourceListAsync()
        {
            return (IActionResult)await _sourceService.GetSourceListAsync();
        }

    }
}
